@ECHO OFF
:: At least 1 command line arguments is required
IF [%1]==[] goto Syntax

:: Building the Webapp
echo .
echo [INFO] Building the Webapp: mvn clean install
echo .
call mvn clean install

:: Deploying the webapp
echo .
echo [INFO]	Deploying the webapp Cmd: mvn tomcat:%1% ...
echo .
call mvn tomcat:%1%
goto End

:Syntax
echo [INFO] Usage:    rich-build  [ arguments ]
echo [INFO] Written by Richard Ewelle
echo [INFO] http://www.rich-ewellee.net
:End
echo [INFO] Execution terminated